import {ApiIP,ApiIPww} from './apiUrl';
const user = {
  queryCurrent: `POST ${ApiIP}/ISupplierInfoFacade/getSpsUserInfoById`,
  queryEnterprise: 'GET /api/v2/mgt/enterprise',
  querySubUsers: `GET /api/v2/mgt/users`,
  create: `POST /api/v2/mgt/users`,
  update: `POST /users/{id}`,
  lock: `POST /api/v2/mgt/users/lock`,
  unlock: `POST /api/v2/mgt/users/unlock`,
  resetPassword: `PUT /api/v2/mgt/users/password`,
  queryByOrg: `GET /api/v1/sys/users/org/{orgCode}/search`,
  queryUsers: `GET /api/v1/sys/users/search`,
  queryCurrentMenus: `GET /api/v1/u/usertree`,
  queryRoles: `GET /api/v1/sys/users/{id}/roles`,
  querySmsPermission: 'GET /api/v1/u/has/permission/sms',
  userManage: {
    queryUserList: `GET /api/v1/sys/users`, // 获取用户列表
    remove: `DELETE /api/v1/sys/users`, // 删除用户
    create: `POST /api/v1/sys/users`, // 添加用户
    update: `PUT /api/v1/sys/users/{id}`, // 修改用户
    lock: `POST /api/v1/sys/users/lock`, // 锁定用户
    unlock: `POST /api/v1/sys/users/unlock`, // 解锁用户
    resetPassword: `POST /api/v1/sys/users/reset/password`, // 重置密码
    checkCode: `GET /api/v1/sys/users/check/available`,
  },
};

export default user;
